package com.atguigu.gulimall.product.service;

import com.atguigu.gulimall.product.vo.Catelog2Vo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author feiji
 * @email 2803313690@qq.com
 * @date 2020-12-29 11:48:09
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    void removeMenuByIds(List<Long> asList);



    /**
     * 用来根据当前三级分类查询此分类完整分类路径:  父路径/子路径/孙子路径
     * @param catelogId   子路径或孙子路径
     * @return
     */
    Long[] findCatelodPath(Long catelogId);

    void updateCascade(CategoryEntity category);

    List<CategoryEntity> getLevelFirstCategories();

    Map<String, List<Catelog2Vo>> getCatalogJson();
}

